<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div id = "app">
    <div class="container-fluid">
        <div class="row-fluid">
            <div th:insert="/admin/common/side::side" ></div>

            <!-- content -->
            <div style="display: flex; flex-direction: column">
                <div class="span10" id="content">
                    <div class="row-fluid">
                        <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <a class="btn btn-default" th:href="@{/admin/grade/add.html}" role="button">增加</a>
                            </div>
                            <div class="block-content collapse in">
                                <div class="span12">
                                    <table class="table">
                                        <thead>
                                        <tr>
                                            <th>信息</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr th:each = "grade : ${list}">
                                            <td th:text="${grade.name}"></td>
                                            <td>
                                                <!--            //这样可以拿到对应数据-->
                                                <a class="btn btn-default" th:href="@{/admin/grade/detail(id = ${grade.id})}" role="button">编辑</a>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <!-- /block -->
                    </div>
                </div>
            </div>
            <!-- content -->
        </div>
    </div>
</div>
<!--  main  -->
</body>
<div th:insert="/admin/common/footer::js" ></div>
</html>